Yes, I believe I made a comment about how to use brackets with if and else statements... basically here is the rule of thumb..
If you have one single line of code you're executing after a comparative statement (if or else) then you don't need brackets.
If you have multiple lines of code that you're executing after a comparative statement, use brackets so all code is executed properly.
HOWEVER... as a good practice, I use brackets all the time regardless of how many lines I execute afte a comparative statement.
Does that make sense?
Also to answer your question, you can use as many comparactive statements (under each other) as you want.
Here is an example
Code:
if(something)
{
if(something)
{
if(something)
{
blah
}
else
{
blah2
}
}
}
else
{
if(something)
{
blah
}
else
{
if(something)
{
blah
}
else
{
blah2
}
}
}
Is that clear?
I think it's great that you're trying to learn. It's all about trial and error. Just keep at it man. Wait till you get to 2 and 3 dimensional arrays.. or worse... vectors. haha.
EDIT:
After taking a second look at your code, you can narrow it down even further..
Code:
if((getcvar("mapname") == "obj/obj_team2") && (getcvar("punish") == "1"))
{
thread axis
}
end